<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateSemesterOfBatchTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateSemesterOfBatchLabel_fromDate}" for="fromDate" />
                    <h:inputText id="fromDate" value="#{semesterOfBatchController.selected.fromDate}" title="#{bundle.CreateSemesterOfBatchTitle_fromDate}" required="true" requiredMessage="#{bundle.CreateSemesterOfBatchRequiredMessage_fromDate}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateSemesterOfBatchLabel_toDate}" for="toDate" />
                    <h:inputText id="toDate" value="#{semesterOfBatchController.selected.toDate}" title="#{bundle.CreateSemesterOfBatchTitle_toDate}" required="true" requiredMessage="#{bundle.CreateSemesterOfBatchRequiredMessage_toDate}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateSemesterOfBatchLabel_description}" for="description" />
                    <h:inputText id="description" value="#{semesterOfBatchController.selected.description}" title="#{bundle.CreateSemesterOfBatchTitle_description}" />
                    <h:outputLabel value="#{bundle.CreateSemesterOfBatchLabel_semester}" for="semester" />
                    <h:selectOneMenu id="semester" value="#{semesterOfBatchController.selected.semester}" title="#{bundle.CreateSemesterOfBatchTitle_semester}" required="true" requiredMessage="#{bundle.CreateSemesterOfBatchRequiredMessage_semester}">
                        <f:selectItems value="#{semesterController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateSemesterOfBatchLabel_batch}" for="batch" />
                    <h:selectOneMenu id="batch" value="#{semesterOfBatchController.selected.batch}" title="#{bundle.CreateSemesterOfBatchTitle_batch}" required="true" requiredMessage="#{bundle.CreateSemesterOfBatchRequiredMessage_batch}">
                        <f:selectItems value="#{batchController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{semesterOfBatchController.create}" value="#{bundle.CreateSemesterOfBatchSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{semesterOfBatchController.prepareList}" value="#{bundle.CreateSemesterOfBatchShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.CreateSemesterOfBatchIndexLink}"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
